package com.lecyon.farm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 数据核检记录
 *
 * @author YaoZheng
 * @since 2020-04-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "数据核检记录")
public class DataVerification extends Model<DataVerification> {

    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(value = "主键Id")
    private Long id;

    @ApiModelProperty(value = "目标平台")
    private String targetPlatform;

    @ApiModelProperty(value = "作业类型")
    private Integer activityType;

    @ApiModelProperty(value = "作业条数")
    private Integer activityQuantity;

    @ApiModelProperty(value = "地块总面积")
    private BigDecimal totalArea;

    @ApiModelProperty(value = "总合格面积")
    private BigDecimal totalAcceptableArea;

    @ApiModelProperty(value = "总重复面积")
    private BigDecimal totalRepeatArea;

    @ApiModelProperty(value = "设备条数")
    private Integer operatingEquipmentQuantity;

    @ApiModelProperty(value = "轨迹条数")
    private Integer traceQuantity;

    @ApiModelProperty(value = "地块条数")
    private Integer plotQuantity;

    @ApiModelProperty(value = "图片张数")
    private Integer photoQuantity;

    @ApiModelProperty(value = "重复数据条数")
    private Integer jobOverLapQuantity;

    @ApiModelProperty(value = "同步日期")
    private LocalDate syncDate;

    @ApiModelProperty(name = "crt_time", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime crtTime;

    @ApiModelProperty(name = "upd_time", value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updTime;

    @ApiModelProperty(name = "del_flag", value = "删除标记")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private String userToken;

}
